//
//  ZCAttentionViewController.m
//  BaiSi
//
//  Created by 张灿 on 16/4/24.
//  Copyright © 2016年 张灿. All rights reserved.
//

#import "ZCAttentionViewController.h"
#import "ZCLoginViewController.h"

@interface ZCAttentionViewController ()

@end

@implementation ZCAttentionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNavBar];
    self.view.backgroundColor = [UIColor colorWithRed:206 / 255.0 green:206 / 255.0 blue:206 / 255.0 alpha:1.0];
}

- (void)setupNavBar
{
    //左
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"friendsRecommentIcon"] highlightImage:[UIImage imageNamed:@"friendsRecommentIcon-click"] Target:self action:@selector(addFriend)];
    
    //中
    self.navigationItem.title = @"我的关注";
}

- (void)addFriend
{
    NSLog(@"添加朋友");
}

//点击登录,注册按钮
- (IBAction)loginClick:(id)sender {
    ZCLoginViewController *logVC = [[ZCLoginViewController alloc] init];
    //modal出登录界面
    [self presentViewController:logVC animated:YES completion:nil];
    
}

@end
